package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 考试基本信息实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/21</td>
 * <td>lanwei</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author lanwei
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_EXAMINATION")
public class Examination implements Serializable {

  /**
   * 序列化
   */
  private static final long serialVersionUID = -244296661369456983L;

  /**
   * 考试id
   */
  @TableId(value = "EXAMINATION_ID", type = IdType.ASSIGN_UUID)
  private String examinationId;
  /**
   * 考试名称
   */
  @TableField(value = "EXAMINATION_NAME")
  private String examinationName;
  /**
   * 考试时长
   */
  @TableField(value = "EXAMINATION_DURATION")
  private Double examinationDuration;
  /**
   * 考试类型
   */
  @TableField(value = "EXAMINATION_TYPE")
  private String examinationType;
  /**
   * 考试开始时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "EXAMINATION_START_TIME")
  private Date examinationStartTime;
  /**
   * 考试结束时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "EXAMINATION_END_TIME")
  private Date examinationEndTime;
  /**
   * 试卷ID
   */
  @TableField(value = "EXAMINATION_PAPER_ID")
  private String examinationPaperId;
  /**
   * 是否启用
   */
  @TableField(value = "IS_ENABLE")
  private Integer isEnable;
  /**
   * 创建用户ID
   */
  @TableField(value = "CREATE_USER_ID")
  private String createUserId;
  /**
   * 创建时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "CREATE_TIME")
  private Date createTime;
  /**
   * 修改用户ID
   */
  @TableField(value = "UPDATE_USER_ID")
  private String updateUserId;
  /**
   * 修改时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(value = "UPDATE_TIME")
  private Date updateTime;
  /**
   * 是否删除
   */
  @TableField(value = "IS_DELETE")
  private Boolean isDelete;
  /**
   * 备注
   */
  @TableField(value = "MEMO")
  private String memo;

}
